package com.san.hkhospital.mapper;

import com.san.hkhospital.dto.Medbuy1;
import com.san.hkhospital.entity.MedBuy;
import com.san.hkhospital.entity.MedBuyExample;

import java.util.List;

import com.san.hkhospital.vo.MedbuyVo;
import com.san.hkhospital.vo.MedicineVo;
import org.apache.ibatis.annotations.Param;

/**
 * ClassName:MedBuyMapper
 * PackageName:com.san.hkhospital.mapper
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 19:26
 */


public interface MedBuyMapper {
    long countByExample(MedBuyExample example);

    int deleteByExample(MedBuyExample example);

    int deleteByPrimaryKey(Integer mbId);

    int insert(MedBuy record);

    int insertSelective(MedBuy record);

    List<MedBuy> selectByExample(MedBuyExample example);

    MedBuy selectByPrimaryKey(Integer mbId);

    int updateByExampleSelective(@Param("record") MedBuy record, @Param("example") MedBuyExample example);

    int updateByExample(@Param("record") MedBuy record, @Param("example") MedBuyExample example);

    int updateByPrimaryKeySelective(MedBuy record);

    int updateByPrimaryKey(MedBuy record);

    List<MedbuyVo> search(Medbuy1 medbuy1);
}